<?php
class NomeDaClass{
    public function __construct() {
        
        
    }
    public function __set($atributo, $valor){
          $this->$atributo = $valor;
    }
 
    public function __get($atributo){
          return $this->$atributo;
    }
    

}
?>
